//
//  ConfirmHeaderView.m
//  JSShopCartModule
//
//  Created by legend on 16/8/22.
//  Copyright © 2016年 乔同新. All rights reserved.
//

#import "ConfirmHeaderView.h"
#import "AddressViewController.h"
#import "ConfirmOderViewController.h"
@interface ConfirmHeaderView()

@end
@implementation ConfirmHeaderView
- (IBAction)adressClickAction:(id)sender {
   ConfirmOderViewController *confirmVC =(ConfirmOderViewController *)self.nextResponder.nextResponder.nextResponder;
    AddressViewController *addressVC = [[AddressViewController alloc] init];
    [confirmVC.navigationController pushViewController:addressVC animated:YES];
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        UIView * view   =   [[[NSBundle mainBundle]loadNibNamed:@"ConfirmHeaderView" owner:self options:nil] firstObject];
        view.frame = frame;
        [self addSubview:view];
    }
    return self;
}

@end
